var qn = require('qn');
var client = qn.create({
	accessKey: 'eRYSxptyvRbfk_n3hCDRu2vP2OXqA9qB9saFxQU3',
	secretKey: 'hpdM61MCAEyC00aKH5StBZDuCnVMTb_Heg7h_LU9',
	bucket: 'cdcxy',
	origin: 'http://p4yu0ute4.bkt.clouddn.com/',
});


let filepath = '/Users/jeking/Downloads/321.png';


client.uploadFile(filepath, {key: 'qn/lib/client.png'}, function (err, result) {
  console.log(result);
  // {
  //   hash: 'FhGbwBlFASLrZp2d16Am2bP5A9Ut',
  //   key: 'qn/lib/client.js',
  //   url: 'http://qtestbucket.qiniudn.com/qn/lib/client.js'
  //   "x:ctime": "1378150371",
  //   "x:filename": "client.js",
  //   "x:mtime": "1378150359",
  //   "x:size": "21944",
  // }
});


module.exports = client;